import junit.framework.TestCase;
import com.thoughtworks.selenium.*;

public class yahooTest extends TestCase{

	Selenium test = new DefaultSelenium("localhost",4444,"*firefox","https://horizon.csueastbay.edu");
	public void testweb() throws InterruptedException
	 {
		test.start();
		test.open("/");
		test.windowMaximize();
		test.type("//div[@id='hl_formelements']/input", "pc8845");
		test.click("//div[@id='hl_formelements']/input[2]");
		test.type("//div[@id='hl_formelements']/input[2]", "cityview243");
		test.click("//input[@value='  Sign In  ']");
		test.waitForPageToLoad("30000");
		Thread.sleep(5000);
		test.highlight("//div[@id='guser']");
		//test.click("//div[@id='guser']/nobr/a[2]");
		test.click("//span[@id=':rd']");
		//test.click("//textarea[@id=':8a']");
		//test.type("//textarea[@id=':8a']/input", "amitpanchabhai@gmail.com");
		test.click("//tr[@id=':av']/tr/td[2]/input");
		//test.type("//td[@class='eC']/input", "Hi");
		//test.click("link=Sign out");
		//test.click("a[@id=:r6]");
		test.waitForPageToLoad("30000");
		//test.close();
			
		

	}

}
